<extend name='Yg/index' />
<block name='main'>
<div id="page-wrapper" style="background-image:url('__PUBLIC__/css/a.jpeg');">

            <div class="container-fluid">

                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <h2 class="page-header">
                            员工管理
                        </h2>
                        <ol class="breadcrumb">
                            <li class="active">
                                <i class="fa fa-dashboard"></i> 您的位置 => 员工列表
                            </li>
                        </ol>
                    </div>
                </div>
                <form class="form-horizontal" action="<{:U('User/index')}>" method="get">
                            <div class="form-group">
                                 <label for="inputEmail3" class="col-sm-1 control-label">姓名：</label>
                                <div class="col-sm-3">
                                    <input type="text"   class="form-control"   id="inputEmail3"   name="n"   value="<PHP>echo $_GET['n']</PHP>" />
                                </div>
                                 <label for="inputPassword3" class="col-sm-1 control-label">部门：</label>
                                <div class="col-sm-3">
                                    <select class="form-control" id="sel" name="g">
                                        <option value=''>全部</option>
                                    <volist name='group' id='v'>
                                        <option value=<{$i}> <PHP>if($_GET['g']==$i){echo selected;}</PHP> ><{$v}></option>
                                    </volist>
                                    </select>
                                </div>
                                <div class="col-sm-1">
                                     <button type="submit" class="btn btn-default">查询</button>
                                </div>
                            </div>
                        </form>
                <!-- /.row -->
                <table class="table table-striped table-bordered table-hover">
			<thead>
				<tr align='left' bgcolor="#D9EDF7">
					<th>登录ID</th>
					<th>真实姓名</th>
					<th>部门</th>
					<th>职位</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<volist name="lista" id="vo" >
				<tr>
					<td><{$vo.name}><{$vo.id}></td>
					<td><{$vo.name}></td>
					<td><{$vo.gid.groupname}></td>
					<td><{$vo.pid.remark}></td>
					<td>
						<a href="<{:U('User/detail',array('id'=>$vo['id']))}>">查看详细</a>
					</td>
				</tr>
			</volist>
			</tbody>
			
			
		</table>
                <div class="pagination"><{$page}></div>        
            </div>
            <!-- /.container-fluid -->

        </div>
        <!-- /#page-wrapper -->
</block>